#include<stdio.h>
int sum(int a ,int b) 
{ 
	int i=0 , sum = 0;
	
	for (i = a; i <= b; i++){	
	sum += i;}
	printf("%d到%d的和为%d\n",a,b,sum);
	
        return sum;	


	
}
   int main()

{       int a=0 , b=0;
       	printf("Enter two numbers:\n");
       scanf("%d%d",&a&(int)b);
       
	sum(a,b);
      /*	printf("sum");*/
       	
	
		return 0;
}
    
 
